package com.amigo.online.provider.video.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.common.param.dto.video.MusicQueryDto;
import com.amigo.online.provider.video.model.entity.MusicCollect;

@Mapper
@Component
public interface MusicCollectMapper extends MyMapper<MusicCollect> {

    List<Long> selectMusicIds(MusicQueryDto musicQueryDto);

    int deleteCollect(MusicCollect musicCollect);

    List<MusicCollect> findByMusicIdIdAndUserid(@Param("musicId") Long mudicId, @Param("userId") Long userId);

    MusicCollect findOneByMusicIdIdAndUserid(@Param("musicId") Long mudicId, @Param("userId") Long userId);

    int add(MusicCollect musicCollect);
}
